package com.example.mybatisplusgen.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 文章标签管理
 * </p>
 *
 * @author 又菜又爱玩
 * @since 2023-04-27
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("blog_tag")
@ApiModel(value = "BlogTag对象", description = "文章标签管理")
public class BlogTag implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("标签名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("创建时间")
    @TableField("created_on")
    private Integer createdOn;

    @ApiModelProperty("创建人")
    @TableField("created_by")
    private String createdBy;

    @ApiModelProperty("修改时间")
    @TableField("modified_on")
    private Integer modifiedOn;

    @ApiModelProperty("修改人")
    @TableField("modified_by")
    private String modifiedBy;

    @TableField("deleted_on")
    private Integer deletedOn;

    @ApiModelProperty("状态 0为禁用、1为启用")
    @TableField("state")
    private Byte state;

    public static final String ID = "id";

    public static final String NAME = "name";

    public static final String CREATED_ON = "created_on";

    public static final String CREATED_BY = "created_by";

    public static final String MODIFIED_ON = "modified_on";

    public static final String MODIFIED_BY = "modified_by";

    public static final String DELETED_ON = "deleted_on";

    public static final String STATE = "state";
}
